package com.misty.blog.bean.param.blog;

import com.baomidou.mybatisplus.annotation.TableField;
import com.misty.dao.domain.Users;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @ClassName : SaveParam
 * @Description :
 * @Author :
 * @Date: 2022-12-10 16:49
 */
@Data
public class SaveParam {

    private Integer id; //id
    private String title; //标题
    private String content; //内容
    private String firstPicture; //首图
    private Integer likesCount; //点赞数
    private Integer collectionCount; //收藏数
    private String flag; //标记
    private Integer views; //浏览次数
    private boolean appreciation; //赞赏开启
    private boolean shareStatement; //版权开启
    private boolean commentabled; //评论开启
    private boolean published; //发布
    private boolean recommend; //推荐
    //    private String tag; //标签
    private LocalDateTime createTime; //创建时间
    private LocalDateTime updateTime ; //更新时间

    @TableField(value = "user_id")
    private Integer userId;

    @TableField(exist = false)
    private String username;

    @TableField(exist = false)
    private Users user;

    @TableField(exist = false)
    private List<String> tagList;

}
